package org.xiyu.yee.pjwto.event;

import net.minecraftforge.event.server.ServerStartedEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
import org.xiyu.yee.pjwto.Constants;
import org.xiyu.yee.pjwto.trading.PiglinTradeManager;

/**
 * Forge 事件处理器
 */
@Mod.EventBusSubscriber(modid = Constants.MOD_ID)
public class ForgeServerEvents {
    
    @SubscribeEvent
    public static void onServerStarted(ServerStartedEvent event) {
        Constants.LOG.info("Server started, initializing piglin loot table");
        PiglinTradeManager.initializeLootTable(event.getServer());
    }
}
